FROM java:8-jdk-alpine
VOLUME /tmp
COPY target/*.jar app.jar
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n\
https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories

RUN apk --update add curl bash ttf-dejavu && \
      rm -rf /var/cache/apk/*

RUN sh -c 'touch /app.jar'
CMD ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
#docker run -d -p 8080:8080 lc-admin:1.0.0 java -Djava.securit…
#docker run -d -p 8081:8080 lc-admin:1.0.0
#yum install fontconfig
#fc-cache --force